High Beams 2.0! Bigger! Brighter! Better!  Now with 100% more manually installed java files!

The original [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3438126404]High Beams Mod[/url] took things as far as I could with pure LUA modding.  I wasn't happy with the results I was getting as I pushed for even better lighting coverage, so I made the decision to create a version that replaces the VehiclePart.class Java file.


[h1]MANUAL INSTALLATION NEEDED![/h1]

[h2]Installation (Windows)[/h2]

[list]
[*]This mod is for B42 only. DO NOT install the java file to B41, it will break your game!
[*]Close Project Zomboid
[*]Subscribe to the mod.
[*]Once the mod has downloaded, go to <Steam Install Folder>\steamapps\workshop\content\108600\XXXXXXXXXX\mods\Nep High Beams 2\42\
[*]Optional but recommended: backup <Steam Install Folder>\steamapps\common\ProjectZomboid\zombie\vehicles\VehiclePart.class
[*]Copy the zombie folder to <Steam Install Folder>\steamapps\common\ProjectZomboid . One file will be overwritten.
[*]Start Project Zomboid and enable the mod.
[/list]

[h2]Uninstallation[/h2]

Replace the modified VehiclePart.class with the backup copy you made, or use steam to Verify Files which will restore the original java file.

[h3]FAQ[/h3]

[b]How do I use this mod?[/b]

You need to be playing [b]B42[/b], you need to have manually installed the java file, you need the mod to be enabled and you need a vehicle with at least one functional headlight bulb. Get in your car and toggle high-beam mode with the hotkey (set to '.' by default.) The headlight indicator will be blue when headlights are on and in high-beam mode. 

[b]What do the options do?[/b]

In Options -> Mods -> High Beams 2 you can change a few settings:

[list]
[*]Keybind: The key to toggle high beams
[*]Always on: high beam mode is set to one when you get into a vehicle. 
[*]Length Multiplier: how much more distance do you want compared to normal headlights?  
[*]Intensity multiplier: how much brighter should the headlights be? Beyond 2 this mainly affects edge dropoff
[*]Ignore Headlight condition: as long as your bulbs have 1% condition remain your high beams will be at full power.
[*]360° High beams: when high beams are active they light up everything in range in all directions.  
[*]360° normal ligts: using normal headlights they light up the are around teh car, which is helpful for reverse parking at night. 
[*]Debug Mode: Prints extra info to console.
[/list]


[b]Can this mod be safely added/removed mid-save?[/b]

Yes.


[b]How do I use this mod on Linux or MacOS?[/b]

This mod should work on other platforms (Java: Write once, run anywhere!™) but the exact steps to copy the VehiclePart.class from the mod folder to the game folder  vary.  If you're on Linux I assume you know how to do this using the commandline or your filemanager of choice.  If you're on MacOS [url]this discussion on installing Better Car Physics[/url] may help.  Steamdeck will probably be a bit in between Windows and linux, but again the goal is to replace the original VehiclePart.class with the one from the mod.  


[b]Does this mod work in B41?[/b]

This mod is B42 only.  


[b]Does this work in Multiplayer?[/b]

Probably, but we won't know for sure until B42 multiplayer comes out.  I do intend to move some of the options to sandbox settings so they can be controlled by server admins, but for now it's easier to have everything in one place.


[b]Replacing Java files is scary, but I want brighter headlights. What can I do?[/b]

Use the [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3438126404]previous lua-only verison of High Beams.[/url]


[b]Does this work with modded vehicles?[/b]

There soudl be no issues with any modded vehicles, and it works with every modded vehicle I've tested.  Unlike the older LUA version this mod  does't have issues with vehicles that are very large, very small or that rock back and forth lot on their suspension.


[b]Is this mod compatible with [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2909035179]Better Car Physics[/url]?[/b]

Yes, the java file modified by this mod is seperate to the java files that mod affects.


[b]Does using high beams while the engine is off consume more battery power than normal lights?[/b]

No.  If I do add that feature I'll include an option to disable it, because realism can be good but it can also just take the fun away from games when your car battery runs flat on you.


[b]Can I make the lighting smoother as I drive?[/b]

In Options -> Display & Performance -> Lighting Updates  set the number of lighting updates to a value higher than 15 per second.  This technically has nothing to do with this mod, but is worth knowing since you're probably paying more attention to the lighting while looking at the effects of this mod.




Workshop ID: 3438126404
Mod ID: NepHighBeams